The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
Changes 010
MANIFEST 23
META.json 076
META.yml 44
Makefile.PL 4343
README 33
corpus/DZ1/.netrc 30
dist.ini 581
lib/Dist/Zilla/Plugin/Twitter.pm 44
xt/release/pod-coverage.t 10
xt/release/pod-syntax.t 22
xt/release/portability.t 017
12 files changed (This is a version diff) 120163
@@ -1,5 +1,15 @@
 Revision history for Dist-Zilla-Plugin-Twitter
 
+0.008     2010-07-26 20:14:54 EST5EDT
+
+    - document that FakeRelease may also be used
+      [contributed by kent fredric]
+
+    - add some alternate sources for username since dist-zilla
+      may have renamed what gets defined by release plugins
+
+    - update dist.ini to @DAGOLDEN bundle (but still twitter it)
+
 0.007     2010-04-29 10:09:15 EST5EDT
 
     - add 'hash_tags' option to append custom tags
@@ -1,11 +1,11 @@
 Changes
 LICENSE
 MANIFEST
+META.json
 META.yml
 Makefile.PL
 README
 Todo
-corpus/DZ1/.netrc
 corpus/DZ1/dist.ini
 corpus/DZ1/lib/DZ1.pm
 dist.ini
@@ -20,4 +20,5 @@ t/twitter.t
 weaver.ini
 xt/release/distmeta.t
 xt/release/pod-coverage.t
-xt/release/pod-syntax.t
\ No newline at end of file
+xt/release/pod-syntax.t
+xt/release/portability.t
@@ -0,0 +1,76 @@
+{
+   "abstract" : "Twitter when you release with Dist::Zilla",
+   "author" : [
+      "David Golden <dagolden@cpan.org>"
+   ],
+   "dynamic_config" : 0,
+   "generated_by" : "Dist::Zilla version 4.101831, CPAN::Meta::Converter version 2.101670",
+   "license" : [
+      "apache_2_0"
+   ],
+   "meta-spec" : {
+      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+      "version" : "2"
+   },
+   "name" : "Dist-Zilla-Plugin-Twitter",
+   "no_index" : {
+      "directory" : [
+         "t",
+         "xt",
+         "examples",
+         "corpus"
+      ]
+   },
+   "prereqs" : {
+      "configure" : {
+         "requires" : {
+            "ExtUtils::MakeMaker" : "6.31"
+         }
+      },
+      "runtime" : {
+         "requires" : {
+            "Carp" : 0,
+            "Dist::Zilla" : "2.101170",
+            "Dist::Zilla::Role::AfterRelease" : 0,
+            "Dist::Zilla::Role::TextTemplate" : 0,
+            "Math::BigFloat" : 0,
+            "Moose" : "0.99",
+            "Net::Netrc" : 0,
+            "Net::Twitter" : "3",
+            "WWW::Shorten::TinyURL" : "1",
+            "namespace::autoclean" : "0.09",
+            "perl" : "5.008",
+            "utf8" : 0
+         }
+      },
+      "test" : {
+         "requires" : {
+            "Dist::Zilla::App::Tester" : 0,
+            "Dist::Zilla::Role::Releaser" : 0,
+            "Dist::Zilla::Tester" : 0,
+            "File::Find" : 0,
+            "File::Temp" : 0,
+            "HTTP::Response" : 0,
+            "LWP::UserAgent" : 0,
+            "Params::Util" : 0,
+            "Path::Class" : 0,
+            "Sub::Exporter" : 0,
+            "Test::More" : "0.88"
+         }
+      }
+   },
+   "provides" : {
+      "Dist::Zilla::Plugin::Twitter" : {
+         "file" : "lib/Dist/Zilla/Plugin/Twitter.pm",
+         "version" : "0.008"
+      }
+   },
+   "release_status" : "stable",
+   "resources" : {
+      "repository" : {
+         "url" : "http://github.com/dagolden/dist-zilla-plugin-twitter"
+      }
+   },
+   "version" : "0.008"
+}
+
@@ -16,7 +16,8 @@ build_requires:
   Test::More: 0.88
 configure_requires:
   ExtUtils::MakeMaker: 6.31
-generated_by: 'Dist::Zilla version 2.101170'
+dynamic_config: 0
+generated_by: 'Dist::Zilla version 4.101831, CPAN::Meta::Converter version 2.101670'
 license: apache
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -31,8 +32,7 @@ no_index:
 provides:
   Dist::Zilla::Plugin::Twitter:
     file: lib/Dist/Zilla/Plugin/Twitter.pm
-    version: 0.007
-recommends: {}
+    version: 0.008
 requires:
   Carp: 0
   Dist::Zilla: 2.101170
@@ -48,4 +48,4 @@ requires:
   utf8: 0
 resources:
   repository: http://github.com/dagolden/dist-zilla-plugin-twitter
-version: 0.007
+version: 0.008
@@ -2,61 +2,61 @@
 use strict;
 use warnings;
 
- BEGIN { require 5.008; } 
+BEGIN { require 5.008; }
 
 use ExtUtils::MakeMaker 6.31;
 
 
 
 my %WriteMakefileArgs = (
-                       'test' => {
-                                   'TESTS' => 't/*.t'
-                                 },
-                       'NAME' => 'Dist::Zilla::Plugin::Twitter',
-                       'DISTNAME' => 'Dist-Zilla-Plugin-Twitter',
-                       'CONFIGURE_REQUIRES' => {
-                                                 'ExtUtils::MakeMaker' => '6.31'
-                                               },
-                       'AUTHOR' => 'David Golden <dagolden@cpan.org>',
-                       'BUILD_REQUIRES' => {
-                                             'Sub::Exporter' => '0',
-                                             'Dist::Zilla::Tester' => '0',
-                                             'Dist::Zilla::Role::Releaser' => '0',
-                                             'Dist::Zilla::App::Tester' => '0',
-                                             'Test::More' => '0.88',
-                                             'LWP::UserAgent' => '0',
-                                             'Params::Util' => '0',
-                                             'HTTP::Response' => '0',
-                                             'File::Find' => '0',
-                                             'File::Temp' => '0',
-                                             'Path::Class' => '0'
-                                           },
-                       'ABSTRACT' => 'Twitter when you release with Dist::Zilla',
-                       'EXE_FILES' => [],
-                       'VERSION' => '0.007',
-                       'PREREQ_PM' => {
-                                        'Dist::Zilla::Role::TextTemplate' => '0',
-                                        'namespace::autoclean' => '0.09',
-                                        'Dist::Zilla::Role::AfterRelease' => '0',
-                                        'Net::Netrc' => '0',
-                                        'WWW::Shorten::TinyURL' => '1',
-                                        'Carp' => '0',
-                                        'utf8' => '0',
-                                        'Dist::Zilla' => '2.101170',
-                                        'Math::BigFloat' => '0',
-                                        'Net::Twitter' => '3',
-                                        'Moose' => '0.99'
-                                      },
-                       'LICENSE' => 'apache'
-                     );
+  'ABSTRACT' => 'Twitter when you release with Dist::Zilla',
+  'AUTHOR' => 'David Golden <dagolden@cpan.org>',
+  'BUILD_REQUIRES' => {
+    'Dist::Zilla::App::Tester' => '0',
+    'Dist::Zilla::Role::Releaser' => '0',
+    'Dist::Zilla::Tester' => '0',
+    'File::Find' => '0',
+    'File::Temp' => '0',
+    'HTTP::Response' => '0',
+    'LWP::UserAgent' => '0',
+    'Params::Util' => '0',
+    'Path::Class' => '0',
+    'Sub::Exporter' => '0',
+    'Test::More' => '0.88'
+  },
+  'CONFIGURE_REQUIRES' => {
+    'ExtUtils::MakeMaker' => '6.31'
+  },
+  'DISTNAME' => 'Dist-Zilla-Plugin-Twitter',
+  'EXE_FILES' => [],
+  'LICENSE' => 'apache',
+  'NAME' => 'Dist::Zilla::Plugin::Twitter',
+  'PREREQ_PM' => {
+    'Carp' => '0',
+    'Dist::Zilla' => '2.101170',
+    'Dist::Zilla::Role::AfterRelease' => '0',
+    'Dist::Zilla::Role::TextTemplate' => '0',
+    'Math::BigFloat' => '0',
+    'Moose' => '0.99',
+    'Net::Netrc' => '0',
+    'Net::Twitter' => '3',
+    'WWW::Shorten::TinyURL' => '1',
+    'namespace::autoclean' => '0.09',
+    'utf8' => '0'
+  },
+  'VERSION' => '0.008',
+  'test' => {
+    'TESTS' => 't/*.t'
+  }
+);
 
 
 unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
   my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
-  my $pp = $WriteMakefileArgs{PREREQ_PM}; 
+  my $pp = $WriteMakefileArgs{PREREQ_PM};
   for my $mod ( keys %$br ) {
     if ( exists $pp->{$mod} ) {
-      $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod}; 
+      $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
     }
     else {
       $pp->{$mod} = $br->{$mod};
@@ -2,7 +2,7 @@ NAME
     Dist::Zilla::Plugin::Twitter - Twitter when you release with Dist::Zilla
 
 VERSION
-    version 0.007
+    version 0.008
 
 SYNOPSIS
     In your "dist.ini":
@@ -40,8 +40,8 @@ DESCRIPTION
            AUTHOR_PATH # J/JO/JOHNDOE
            URL         # TinyURL
 
-    You must be using the "UploadToCPAN" plugin for this plugin to determine
-    your CPAN author ID.
+    You must be using the "UploadToCPAN" or "FakeRelease" plugin for this
+    plugin to determine your CPAN author ID.
 
     You can use the "hash_tags" option to append hash tags (or anything,
     really) to the end of the message generated from "tweet".
@@ -1,3 +0,0 @@
-machine api.twitter.com
-  login jdoe@example.com
-  password example
@@ -3,66 +3,9 @@ author            = David Golden <dagolden@cpan.org>
 license           = Apache_2_0
 copyright_holder  = David Golden
 
-[BumpVersionFromGit]
-version_regexp = ^release-(.+)$
-
-; -- fetch & generate files
-[AllFiles]
-[CompileTests]
-fake_home = 1
-; skip = ...
-;[CriticTests]
-[MetaTests]
-[PodTests]
-
-; -- remove some files
-[PruneCruft]
-[ManifestSkip]
-
-; -- get prereqs
-[AutoPrereq]
-
-; -- munge files
-[PkgVersion]
-[NextRelease]
-[PodWeaver]
-[Prepender]
-;[ExtraTests]
-
-; -- dynamic meta-information
-[InstallDirs]
-[MetaProvides::Package]
-[Repository]
+[@DAGOLDEN]
 git_remote = github
 
-; -- generate meta files
-[MetaNoIndex]
-directory = t
-directory = xt
-directory = examples
-directory = corpus
-[License]
-[MakeMaker]
-[MetaYAML]
-[ReadmeFromPod]
-[Manifest] ; should come last
-
-; -- pre-release
-[TestRelease]
-[CheckExtraTests]
-[Git::Check]
-[ConfirmRelease]
-
-; -- release
-[UploadToCPAN]
-
-; -- post-release
-[Git::Commit]
-[Git::Tag]
-tag_format = release-%v
-[Git::Push]
-push_to = origin
-push_to = github
 [Twitter]
 hash_tags = #perl
 
@@ -13,7 +13,7 @@ use warnings;
 use utf8;
 package Dist::Zilla::Plugin::Twitter;
 BEGIN {
-  $Dist::Zilla::Plugin::Twitter::VERSION = '0.007';
+  $Dist::Zilla::Plugin::Twitter::VERSION = '0.008';
 }
 # ABSTRACT: Twitter when you release with Dist::Zilla
 
@@ -73,7 +73,7 @@ sub after_release {
 
     my $cpan_id = '';
     for my $plugin ( @{ $zilla->plugins_with( -Releaser ) } ) {
-      if ( my $user = eval { $plugin->user } ) {
+      if ( my $user = eval { $plugin->user } || eval { $plugin->username } ) {
         $cpan_id = uc $user;
         last;
       }
@@ -133,7 +133,7 @@ Dist::Zilla::Plugin::Twitter - Twitter when you release with Dist::Zilla
 
 =head1 VERSION
 
-version 0.007
+version 0.008
 
 =head1 SYNOPSIS
 
@@ -173,7 +173,7 @@ available for substitution in the URL and message templates:
        AUTHOR_PATH # J/JO/JOHNDOE
        URL         # TinyURL
 
-You must be using the C<<< UploadToCPAN >>> plugin for this plugin to
+You must be using the C<<< UploadToCPAN >>> or C<<< FakeRelease >>> plugin for this plugin to
 determine your CPAN author ID.
 
 You can use the C<<< hash_tags >>> option to append hash tags (or anything,
@@ -20,4 +20,3 @@ plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage"
   if $@;
 
 all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
-
@@ -10,7 +10,7 @@
 # 
 use Test::More;
 
-eval "use Test::Pod 1.00";
-plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+eval "use Test::Pod 1.41";
+plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
 
 all_pod_files_ok();
@@ -0,0 +1,17 @@
+#!perl
+# 
+# This file is part of Dist-Zilla-Plugin-Twitter
+# 
+# This software is Copyright (c) 2010 by David Golden.
+# 
+# This is free software, licensed under:
+# 
+#   The Apache License, Version 2.0, January 2004
+# 
+
+use Test::More;
+
+eval "use Test::Portability::Files";
+plan skip_all => "Test::Portability::Files required for testing portability"
+  if $@;
+run_tests();